package main

import "fmt"

type MethodUtils struct {
	width  int
	height int
}

func (method *MethodUtils) matrix(m int, n int) {
	method.width = m
	method.height = n
	for i := 1; i <= n; i++ {
		for j := 1; j <= m; j++ {
			fmt.Printf("*")
		}
		fmt.Printf("\n")
	}
}

func (method MethodUtils) area() int {
	return method.width * method.height
}
func main() {
	var method MethodUtils
	method.matrix(3, 2)
	fmt.Println(method)
	area := method.area()
	fmt.Println(area)
}
